#include "CountPress.h"

int CountPress::a_count = 0;

CountPress::CountPress() {
	// Use requires() here to declare subsystem dependencies
	// eg. requires(chassis);
}

// Called just before this Command runs the first time
void CountPress::Initialize() {
	
}

// Called repeatedly when this Command is scheduled to run
void CountPress::Execute() {
	a_count = a_count + 1;
	cout << "we are here " << a_count << endl;
#ifdef SD
	CommandBase::oi->m_smartDashboard->PutInt("scounter", a_count);
#endif /* SD */
}

// Make this return true when this Command no longer needs to run execute()
bool CountPress::IsFinished() {
	return true;
}

// Called once after isFinished returns true
void CountPress::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void CountPress::Interrupted() {
}
